package com.asset.salesforce.domain;

import java.io.Serializable;
import java.util.Set;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Table(name="country")
@Entity
public class Country implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer id;
	private String countryName;
	private String countryNameAr;
	private Set<City> cities;

	

	@OneToMany(mappedBy="country" , fetch=FetchType.EAGER)
	public Set<City> getCities() {
		return cities;
	}

	public void setCities(Set<City> cities) {
		this.cities = cities;
	}

	/**
	 * @return the id
	 */
	 @Id
	 @GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the countryName
	 */
	@Column(name="country_name")
	public String getCountryName() {
		return countryName;
	}

	/**
	 * @param countryName the countryName to set
	 */
	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	/**
	 * @return the countryNameAr
	 */
	@Column(name="country_name_ar")
	public String getCountryNameAr() {
		return countryNameAr;
	}

	/**
	 * @param countryNameAr the countryNameAr to set
	 */
	public void setCountryNameAr(String countryNameAr) {
		this.countryNameAr = countryNameAr;
	}


	

}
